package com.lagou.edu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * EnableEurekaClient 与EnableDiscoveryClient
 * 作用一样，都是将服务作为客户端注册到注册中心中。建议用后者。
 * @author renpeiqian
 * @date 2021/7/13 15:55
 * @since
 */
@SpringBootApplication
@MapperScan(basePackages = "com.lagou.edu.mapper")
@EnableDiscoveryClient
@RefreshScope
public class LagouResumeApplication8081 {

    public static void main(String[] args) {
        SpringApplication.run(LagouResumeApplication8081.class,args);
    }
}
